const { Sequelize } = require("sequelize")
const {
    MYSQL_HOST,
    MYSQL_PORT,
    MYSQL_USER,
    MYSQL_PASS,
    MYSQL_DB
} = require('../config/config.default');

const sequelize = new Sequelize(MYSQL_DB, MYSQL_USER, MYSQL_PASS, {
    host: MYSQL_HOST,
    dialect: 'mysql' /* one of 'mysql' | 'postgres' | 'sqlite' | 'mariadb' | 'mssql' | 'db2' | 'snowflake' | 'oracle' */
});

module.exports = sequelize